package dao;

import entity.pet;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

//@Component("petDao")
@Repository("petDaoMySQL")
public class PetDaoMySqlImpl implements PetDao {
    @Override
    public int insert(pet pet) {
        System.out.println("将宠物“"+pet.getName()+"”插入到MySQL数据库");
        return 1;
    }
}
